<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "invite".
 *
 * @property int $invite_id 邀请id
 * @property int $user_id 用户id
 * @property int $to_id 被邀请id
 * @property int $created_time 创建时间
 */
class Invite extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'invite';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'to_id', 'created_time'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'invite_id' => '邀请id',
            'user_id' => '用户id',
            'to_id' => '被邀请id',
            'created_time' => '创建时间',
        ];
    }
}
